<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title>Transaction Failed</title>
    </h:head>
    <h:body>
        <h1>Transaction Failed</h1>
        <c:choose>
            <c:when test="#{acctManager.exception.cause != null}">
                <h3><h:outputText value="#{acctManager.exception.cause.message}"/></h3>
            </c:when>
            <c:otherwise>
                <h3><h:outputText value="#{acctManager.exception.message}"/></h3>
            </c:otherwise>
        </c:choose>
        <a href="account.xhtml">Back to main page</a>
    </h:body>
</html>

